//
//  main.m
//  delegate
//
//  Created by 林世木 on 11-11-10.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TablePrinter.h"
#import "FruitBasket.h"

int main (int argc, const char * argv[])
{

    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    FruitBasket* myFruitBasket = [[FruitBasket alloc] init];
    
    TablePrinter* myTablePrinter = [[TablePrinter alloc] init];
    [myTablePrinter setDataSource:myFruitBasket];
    
    [myTablePrinter printTable];
    
    [myTablePrinter release];
    [myFruitBasket release];
    
    [pool drain];
    return 0;
}

